package ru.autofan.action;

import org.springframework.webflow.execution.Event;
import org.springframework.webflow.execution.RequestContext;

import ru.autofan.form.CreateUserForm;
import ru.autofan.logic.UserService;

public class CreateUserAction extends AbstractAction {

	public Event createUser(RequestContext context) throws Exception {
		CreateUserForm form = (CreateUserForm) getFormObject(context);
        getService(UserService.class).registerUser(form.getUuid());
		return success();
	}
	
}
